package com.github.wxiaoqi.security.common.exception.bizz;


import com.github.wxiaoqi.security.common.constant.CommonConstants;
import com.github.wxiaoqi.security.common.exception.BaseException;

import lombok.Data;

/**
 * Created by ace on 2017/9/8.
 */
@Data
public class BizException extends BaseException {
	private static final long serialVersionUID = 1L;
	
    public BizException(String message) {
        super(message, CommonConstants.EX_USER_INVALID_CODE);
    }
    
    public BizException(int status,String message) {
    	super(message, CommonConstants.EX_USER_INVALID_CODE);
    	this.setStatus(status);
    }
}
